app.config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) {
    $stateProvider
        .state('tab', {
            url: '/tab',
            abstract: true,
            templateUrl: './views/tab.html'
        })
        .state('tab.remember', {
            url: '/remember',
            templateUrl: './views/tab-remember.html',
            controller: 'rememberCtrl'
        })
        .state('tab.main', {
            url: '/main',
            // templateUrl: './views/tab-main.html'
            templateUrl: './views/tab-main.html',
            controller: 'mainCtrl'
        })
        .state('servesIndex', {
            url: '/servesIndex',
            templateUrl: './views/serves/index.html'
        });

        $urlRouterProvider.otherwise('/tab/main');
}]);